﻿<UserControl x:Class="WeiTalk.Controls.WeiBoCommentControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    d:DesignWidth="480" Foreground="{x:Null}" Loaded="LayoutRoot_Loaded">

    <Border BorderThickness="0,2,0,0" Margin="5,0" >
    	<Border.BorderBrush>
    		<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
    			<LinearGradientBrush.RelativeTransform>
    				<CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="90"/>
    			</LinearGradientBrush.RelativeTransform>
    			<GradientStop Color="White" Offset="1"/>
    			<GradientStop Color="#FFF7F7F7"/>
    			<GradientStop Color="White"/>
    			<GradientStop Color="#FF545252" Offset="0.5"/>
    		</LinearGradientBrush>
    	</Border.BorderBrush>
        <Grid x:Name="LayoutRoot" Background="#FFF7F7F7" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition  Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="1"/>
            </Grid.RowDefinitions>
            <StackPanel Orientation="Horizontal" Grid.Column="0">
            	 <Border Grid.Column="0" Background="#FFEBEBEB" CornerRadius="10" BorderThickness="1" Margin="5">
                <TextBlock  TextWrapping="Wrap" Text="UserName" HorizontalAlignment="Left"   Margin="5" x:Name="tbUserName" Foreground="#FF5E5C5C" FontSize="16"/>
				</Border>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right">
            	<Border Grid.Column="0" Background="#FFE9E9E9" CornerRadius="10" BorderThickness="1" Margin="5">
                <TextBlock x:Name="tbCreateAt" TextWrapping="Wrap" Text="CreatedAt"  Margin="5" VerticalAlignment="Top" HorizontalAlignment="Right"  Foreground="#FF868686" FontSize="16" />
				</Border>
            </StackPanel>
            <Grid Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="65"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
				<Border BorderThickness="0,0,0,2"  Width="50" Height="52" CornerRadius="2" VerticalAlignment="Top" Margin="0,0,1,0">
					<Border.BorderBrush>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<LinearGradientBrush.RelativeTransform>
								<CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="90"/>
							</LinearGradientBrush.RelativeTransform>
							<GradientStop Color="#FFADADAD" Offset="0"/>
							<GradientStop Color="#FFADADAD" Offset="1"/>
							<GradientStop Color="White" Offset="0.504"/>
						</LinearGradientBrush>
					</Border.BorderBrush>
                <Image Width="50" Height="50" VerticalAlignment="Top" x:Name="headImg" Grid.Column="0" HorizontalAlignment="Left" Stretch="UniformToFill" Source="/Images/default.png">
                    <Image.Clip>
                        <RectangleGeometry  Rect="0, 0, 50, 50" RadiusX="5" RadiusY="5"/>
                    </Image.Clip>
                </Image>
				</Border>
                <StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Left" x:Name="spContent">
                    <TextBlock x:Name="tbContent" TextWrapping="Wrap" Text="Text" Margin="15,2,5,10" VerticalAlignment="Top"  HorizontalAlignment="Left" Foreground="#FF0A0A0A" FontSize="21.333" />
                </StackPanel>
               
            </Grid>
            

            <TextBlock  TextWrapping="Wrap" Text="Source" HorizontalAlignment="Left"  Margin="20,5,5,5" x:Name="tbSource"  Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Foreground="#FF686868" FontSize="13.333" VerticalAlignment="Bottom"/>
            <StackPanel Grid.Column="1"  Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
               
			   <Button Content="回复" Background="#FF878787" BorderThickness="0" FontSize="16" VerticalAlignment="Bottom"  Margin="0"/>
               
            </StackPanel>
        </Grid>
    </Border>
</UserControl>
